package lyl.stack;

public class Main {
    public static void main(String[] args) {
       MinStack minStack = new MinStack();
       minStack.push(2);
       minStack.push(1);
       minStack.push(3);
       try {


           System.out.println(minStack.min());
           System.out.println(minStack.pop());

           System.out.println(minStack.min());
           System.out.println(minStack.pop());

           System.out.println(minStack.min());
           System.out.println(minStack.pop());

       }catch (Exception e){
           e.printStackTrace();
       }


    }
}
